package com.sky.mapper;

import com.sky.entity.AddressBook;
import com.sky.entity.YzjData;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface YzjMapper {
    @Select("select * from LAS_DEPT_CODE_RESOLVER")
    List<YzjData> getYzj();



    @Update("UPDATE LAS_DEPT_CODE_RESOLVER SET flag = 1, deal_count = #{dealCount}, undel_count = #{delCount} where id = #{id}")
    void updateFlag(Long id,int dealCount,int delCount);


    @Select("select * from LAS_DEPT_CODE_RESOLVER where 1 = 1 and flag is null")
    List<YzjData> getYzjAndFlag();
}
